POV-Ray : Newsgroups : povray.general : What time is it? : Re: What time is it? Server Time
11 Aug 2024 07:09:58 EDT (-0400)
  Re: What time is it?  
From: Bob Hughes
Date: 28 Aug 1999 17:09:28
Message: <37c85008@news.povray.org>
Use a substr function on the read input. Extract the first two digits
for the hour, next two for minutes.

#declare Time=str(01:23:45am)
#declare H=substr(Time,0,2)
#declare M=substr(Time,2,2)
#declare Hours=strval(H)
#declare Minutes=strval(M)

Something like that anyhow. I'm not sure since I haven't done it,
yet....

Bob

Fabien Mosen <fab### [at] skynetbe> wrote in message
news:37C81C13.5C2798B8@skynet.be...
> PoD wrote:
>
> > Er. how about something like 'time > time.txt' in DOS/Windoze or
'date >
> > time.txt' in *n*x.
> > It won't be very portable though.
>
> I tought of that, but, afaik, Pov needs comma-separated data, so
> the standard dos time output would be unreadable. (but I may
> be wrong...)
>
> Fabien.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.